<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:a4j="http://richfaces.org/a4j"
      xmlns:rich="http://richfaces.org/rich" >
    <h:head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <title>TODO supply a title</title>
    </h:head>
    <h:body>
        <h:form id ="emp">
            <rich:panel header="支付文件">

                
                <h:commandButton value="输出"  action="#{payfile.expPayFile}"/>
                <h:commandButton value="返回" action="#{payfile.goback}"/>
                
                <rich:dataTable id="editTable"  rows="10"
                                value="#{payfile.li}"
                                var="pl"
                                rowClasses="list-row-odd,list-row-even"
                                headerClass="table-header" >
                   <rich:column >
                        <f:facet name="header">
                            <h:panelGroup>
                                <h:outputText value="姓名"/>
                            </h:panelGroup>
                        </f:facet>
                       <h:outputText value="#{pl.user.cpsn_name}" />
                    </rich:column>

                    <rich:column >
                        <f:facet name="header">
                            <h:panelGroup>
                                <h:outputText value="金额"/>
                            </h:panelGroup>
                        </f:facet>
                        <h:outputText value="#{pl.payaccount}">
                            <f:convertNumber type="number" pattern="#,##0.00"/>
                        </h:outputText>
                    </rich:column>

                    <rich:column >
                        <f:facet name="header">
                            <h:panelGroup>
                                <h:outputText value="帐号"/>
                            </h:panelGroup>
                        </f:facet>
                        <h:outputText value="#{pl.user.bankAccount}"/>
                    </rich:column>

                    <f:facet name="footer">
                        <rich:dataScroller id="ds"></rich:dataScroller>
                    </f:facet>                    
                </rich:dataTable>
                <h:panelGrid columns="2"  border="0" id="tongji" style="text-align:left;">
                    <h:outputLabel value="人次:"/>
                    <h:outputText value="#{payfile.peopletime}"/>
                    <h:outputLabel value="金额:"/>
                    <h:outputText value="#{payfile.pf.amount}"/>
                    <h:outputLabel value="支票号:"/>
                    <h:outputText value="#{payfile.pf.checknum}"/>
                 </h:panelGrid>
            </rich:panel>
        </h:form>
    </h:body>
</html>
